#ifndef TEXT_H
#define TEXT_H

#include "math3d.h"
#include "utils.h"

///////////////////////////////////////////////////////////////////////////////

class TextRender
{
public:
  TextRender();
  ~TextRender();

  void resize(int width, int height);

  void draw(const vec2 &pos, const char *text, ...);

private:

private:
  GLuint m_vertexBuffer;
  GLuint m_program;
  GLint m_posAttrib;
  GLint m_stAttrib;
  GLint m_textureSampler;
  GLuint m_texture;

  uint m_viewportWidth;
  uint m_viewportHeight;
};

///////////////////////////////////////////////////////////////////////////////

#endif
